<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include::header('表单填报')" />
</head>
<body class="febs-container" id="febs-formFill">
<div class="febs-body layui-fluid"  lay-title="表单填报" >
    <div class="febs-body-search">
        <form class="jhg-body layui-form layui-table-form" lay-filter="formFill-table-form" id="formFill-table-form">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-inline" id="baseArea-tenant" th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                            <label class="layui-form-label layui-form-label-sm">公司名称</label>
                            <div class="layui-input-inline" >
                                <select name="tenantId" id="tenantId" lay-search="" >
                                    <option th:each="item:${tenantList }"
                                            th:value="${item.tenantId}" th:text="${item.tenantName}"
                                            th:selected="${tenantId ==item.tenantId}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">表单名称</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <input type="text" name="formName" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">日期范围</label>
                            <div class="layui-input-inline" id="laydate-range">
                                <input type="text" name="startDate" autocomplete="off" id="startDate" lay-verify="date"
                                       class="layui-input" placeholder="开始日期">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline">
                                <input type="text" name="endDate" autocomplete="off" id="endDate" lay-verify="date"
                                       class="layui-input" placeholder="结束日期">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label layui-form-label-sm">状态</label>
                            <div class="layui-input-inline" style="width:190px;">
                                <select name="status" id="status">
                                    <option value="">请选择</option>
                                    <option value="1">待提交</option>
                                    <option value="2">已提交</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <div id="query" class="layui-btn">
                                <em class="layui-icon">&#xe615;</em> 查询
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="febs-table-full">
        <table lay-filter="formFillRecordTable" id="formFillRecordTable'}" lay-data="{id: 'formFillTable'}"></table>
    </div>
</div>
<th:block th:include="include::foot" />
<script data-th-inline="javascript">
    var hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
</script>
<script th:src="@{/febs/js/formFill/formFillRecord.js(v=1)}"></script>
</body>
</html>